package com.suibibk.springCloud.order.feignInterceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.slf4j.LoggerFactory;

public class CustomFeignInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate requestTemplate) {
        //设置报文头
        requestTemplate.header("token","123");
    }
}
